package cn.lzm.org.mapper;

import cn.lzm.basic.query.BaseQuery;
import cn.lzm.org.domain.Shop;
import cn.lzm.basic.mapper.BaseMapper;
import cn.lzm.org.vo.ShopVo;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lzm
 * @since 2022-10-15
 */
public interface ShopMapper extends BaseMapper<Shop> {


    Shop findByName(String name);

    void batchAdd(List<Shop> shops);

    List<ShopVo> loadShopEchartsData();

    List<Shop> queryByPage(BaseQuery query);

    // 查询所有数据条数
    Integer queryByCount(BaseQuery query);
}
